#include <iostream>
using namespace std;
#include <list>

void test_list01()
{
	list<int> lt1 = { 9,8,4,2,1,3 };
	//greater<int> gt;
	lt1.sort(greater<int>());
	for (auto e : lt1)
	{
		cout << e << ' ';
	}
}

void test_list02()
{
	list<int> lt1 = { 9,8,4,2,1,3 ,2,1,3};
	for (auto e : lt1)
	{cout << e << ' ';}
	cout << endl;
	lt1.sort();
	lt1.unique();
	for (auto e : lt1)
	{cout << e << ' ';}
}

int main()
{
	test_list02();
	return 0;
}